public class Three {
    public static void main(String[] args) {
          double h=10;
        int b=0;
        double j=h;
        for (b=1; ;b++){
            h=0.8*h;
            j=j+h;
            if (h<0.01){
                break;
            }
        }
        System.out.println("和地面碰撞次数"+b);
        System.out.println("运动轨迹米数为"+j);
    }
}
